<?php
require "../template/header.php";
require "../function/function_user.php";

if ($mysqlpass!=$cookiepass){
header("Location:../do.php?type=logints");
}
?>
	<body>
		<div id="warp">
			<div id="user-header">
				<div id="user-logo">
					<a href="./">
						<img border="0" src="../images/logo.png">
					</a>
				</div>
<?php
require_once "../template/user_info.php";
?>
			</div>
			<div id="user-content">
				<div id="user-content-left">
<?php
require_once "../template/user_menu.php";
?>
				</div>
				<div id="user-content-right">
					<div id="user-content-right-main">
						<div id="user-content-right-main-tou">
							<a href="./">首页</a> > <a href="./">挂Q列表</a>
						</div>
						<div id="user-content-right-main-qqlist">
							<div id="user-content-right-main-qqlist-button">
								<div id="user-content-right-main-qqlist-button-add">
									<a onclick="openaddqq();">添加QQ</a>
								</div>
								<div id="user-content-right-main-qqlist-button-delete">
									<a onclick="delbutton();">删除QQ</a>
								</div>
								<!-- 批量添加开始 -->
								<?php
									if ($userdata['tip']==1){
										if ($userinfo['batch']==1){
											echo batchpage();
										}
									}
								?>
								<!-- 批量添加结束 -->
								<div id="user-content-right-main-qqlist-button-search">
									<form action="" method="get">
										<input type="text" name="qq" value="QQ搜索" />
										<button type="submit">查询</button>
									</form>
								</div>
							</div>
							<div id="user-content-right-main-qqlist-main">
								<div id="user-content-right-main-qqlist-main-table">
									<table>
										<thead>
											<tr>
												<th width="18px"><input type="checkbox" id="checkAll"></th>
												<th width="28px">No.</th>
												<th width="160px">QQ号码</th>
												<th width="50px">服务器</th>
												<th width="120px">挂Q状态</th>
												<th width="210px">SID状态</th>
												<th width="100px">挂机时间</th>
												<th width="63px" title="为了节省资源,满300次后自动删除记录">离线?</th>
											</tr>
										</thead>
									</table>
								</div>
								<form action="../do.php?type=del" method="post" id="delqq">
									<div id="user-content-right-main-qqlist-main-list">
										<div id="qqlist-div">
											<?php
											if (isset($_GET['qq'])){
											qqlistsearch($_GET['qq'],$cookieuser);
											}else{
											qqlistpage($cookieuser);
											}
											?>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="footer">
<?php
require "../template/footer.php";
?>